package com.day11.chouxiang;

public class Animal3 {
    private int age=20;
    private final String city="北京";
    public Animal3(){

    }
    public Animal3(int age){
        this.age=age;
    }
    public void show(){
        age=40;
        System.out.println("年龄是"+age+"岁");
        System.out.println("城市是"+city);
    }
    public abstract void eat();

}
